package com.hph.health.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 物流公司信息表
 * @TableName shipping_info
 */
@TableName(value ="shipping_info")
public class ShippingInfo implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer shipId;

    /**
     * 物流公司名称
     */
    private String shipName;

    /**
     * 物流公司联系人
     */
    private String shipContact;

    /**
     * 物流公司联系电话
     */
    private String telephone;

    /**
     * 配送价格
     */
    private BigDecimal price;

    /**
     * 最后修改时间
     */
    private Date modifiedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    public Integer getShipId() {
        return shipId;
    }

    /**
     * 主键ID
     */
    public void setShipId(Integer shipId) {
        this.shipId = shipId;
    }

    /**
     * 物流公司名称
     */
    public String getShipName() {
        return shipName;
    }

    /**
     * 物流公司名称
     */
    public void setShipName(String shipName) {
        this.shipName = shipName;
    }

    /**
     * 物流公司联系人
     */
    public String getShipContact() {
        return shipContact;
    }

    /**
     * 物流公司联系人
     */
    public void setShipContact(String shipContact) {
        this.shipContact = shipContact;
    }

    /**
     * 物流公司联系电话
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 物流公司联系电话
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 配送价格
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 配送价格
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 最后修改时间
     */
    public Date getModifiedTime() {
        return modifiedTime;
    }

    /**
     * 最后修改时间
     */
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ShippingInfo other = (ShippingInfo) that;
        return (this.getShipId() == null ? other.getShipId() == null : this.getShipId().equals(other.getShipId()))
            && (this.getShipName() == null ? other.getShipName() == null : this.getShipName().equals(other.getShipName()))
            && (this.getShipContact() == null ? other.getShipContact() == null : this.getShipContact().equals(other.getShipContact()))
            && (this.getTelephone() == null ? other.getTelephone() == null : this.getTelephone().equals(other.getTelephone()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getShipId() == null) ? 0 : getShipId().hashCode());
        result = prime * result + ((getShipName() == null) ? 0 : getShipName().hashCode());
        result = prime * result + ((getShipContact() == null) ? 0 : getShipContact().hashCode());
        result = prime * result + ((getTelephone() == null) ? 0 : getTelephone().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", shipId=").append(shipId);
        sb.append(", shipName=").append(shipName);
        sb.append(", shipContact=").append(shipContact);
        sb.append(", telephone=").append(telephone);
        sb.append(", price=").append(price);
        sb.append(", modifiedTime=").append(modifiedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}